<script>
	// <!--
	/* function */
	
	$(function(){
		
		gridJadwalall = $("#grid-jadwalall");
		cmbkondisi2 = $("#cmb-kondisi2");
		
		/* method started */
		
		/* make component */

		gridJadwalall.jqGrid({
			ajaxGridOptions : {type:"POST"},
			serializeGridData : function(postdata) {return postdata; },
			url:'c_jadwal',
			postData : {
				task :  'LIST_JADWAL'
			},
			datatype: "json",
			colNames:['Nama Proyek','Tgl Aanwijz','Tgl Pemasukan','Tgl Klarifikasi','Tgl Kontrak','Status'],
			colModel:[ 
				{name:'jadwal_namaproyek',index:'jadwal_namaproyek', width : 350, search : true},
				{name:'jadwal_tglaan',index:'jadwal_tglaan',align:'center',formatter:'dateInd', width : 90, search : false},
				{name:'jadwal_tglpemasukan',index:'jadwal_tglpemasukan',align:'center',formatter:'dateInd', width : 90, search : false},
				{name:'jadwal_tglklarifikasi',index:'jadwal_tglklarifikasi',align:'center',formatter:'dateInd', width : 90, search : false},
				{name:'jadwal_tglkontrak',index:'jadwal_tglkontrak',align:'center',formatter:'dateInd', width : 90, search : false},
				{name:'kondisi_nama',index:'kondisi_nama', width : 90, search : false}
			],shrinkToFit : true,
			autoWidth : true,
			autoHeight : true,
			height : '100%',
			rowNum:10,
			width:'100%',
			rowList:[10,20,30],
			pager: '#pgrid-jadwalall',
			viewrecords: true,
			sortorder: "desc",
			caption:"Jadwal Proyek"
		}); 
		gridJadwalall.jqGrid('filterToolbar',{});
		
		/* event */
		
		
		cmbkondisi2.change(function(){
			kondisi = $(this).val();
			gridJadwalall.setGridParam({ postData : {task :  'LIST_JADWAL', kondisi : kondisi}});
			gridJadwalall.trigger("reloadGrid");
		});
		 
	});
	// -->
</script>
<style>
/* css urgent */
.form-horizontal .control-group {
	margin-bottom : 5px !important;
}

</style>
	<p>
					<?php echo form_dropdown("cmb-kondisi2",$data_kondisi,"","id=cmb-kondisi2 "); ?>
	</p>
		<table id="grid-jadwalall" class="table table-striped table-bordered" ></table>
		<div id="pgrid-jadwalall"></div>